package cn.dansj.common.utils.enums;

import cn.dansj.common.utils.time.FastDateFormat;

import java.io.Serializable;

public abstract class GlobalEnv implements Serializable {
    public static final long SerialVersionUID = -999L;
    private static final long serialVersionUID = SerialVersionUID;

    /**
     * 任务终止信息
     */
    public static final String InterruptedJobException = "任务已被终止";

    /**
     * sql分页排序保留字段,展示结果时会remove这个字段
     */
    public static final String SqlPageRowNumberColumn = "SqlPageRowNumberColumn__";

    /**
     * 日志默认路径key
     */
    public static final String LogPathKey = "log.path";

    public static final FastDateFormat DateTimeFormatter = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss");
    public static final FastDateFormat DateFormatter = FastDateFormat.getInstance("yyyy-MM-dd");

    /**
     * cacheToken前缀，从redis中获取token信息
     */
    public static final String CacheTokenPrefix = "Token@";

    public static abstract class Ordered {
        public static final int HIGHEST_PRECEDENCE = Integer.MIN_VALUE + 1;
        public static final int NORMAL_PRECEDENCE = 1;
    }
}
